Container Properties
Description
A Container is used to group controls in the FormView Layout.
The Container control can be used to group a set of controls in the layout. For example, a Container could be used to add a border around a set of controls that display an address. Containers can also be used to dynamically show or hide controls.
Container controls consist of two tags: an opening tag and a closing tag. The Insert opening tag? and Insert closing tag? checkboxes can be changed to insert only an opening or closing Container tag. Both checkboxes are checked by default.
Properties
Settings for configuring a Container, including adding items, show/hide expressions, and styles.
Opening Container tag Properties
Container class
One or more classes to apply to the Container control.
Container inline style
Specify in-line styling to apply to the Container control.
Id
The ID of the Container control in the layout.
Item
Specify an item for the Container control. The item will be added to the Container DIV in an 'a5-item' attribute.
Item argument
Specify one or more arguments for the item defined in Item.
Show/hide expression
An expression that determines whether or not the Container is visible in the layout. The Show/hide expression can reference values in fields being processed for the layout.
Value
An optional value that is set in the a5-value attribute of the Container. The value is passed to event handlers defined in the item.
Closing Container tag Properties
Break
Controls if the the next control in the layout should render next to the Container or below the Container.
- Options
- Description
- None
The next control in the layout is rendered next to the Container if the screen is wide enough to render both controls side by side.
- After
The next control in the layout is rendered on a new line below the Container.
Troubleshooting Layout Errors
If the Container's opening or closing tag is missing, or the tags are placed out of order in the layout (i.e. the closing tag is placed before the opening tag), a layout error is generated. For example:
Unexpected ending control for [Container:End] Missing end control for [Container:Start]
To resolve this, the Container's opening and closing tags need to be restored. If the tags are out of order, use the arrow buttons above the layout to move the controls up or down.
If one of the tags is missing, add the missing Container tag using Add item. Select the Container control from the Containers section. Uncheck the Insert opening tag? or Insert closing tag? if the tag already exists in the layout. Then, click OK to add the tag.
Alternatively, you can delete the orphaned Container tag and add a new Container.